<?php echo $this->doctype() ?>
<html>
    <head>
        <meta charset="utf-8">
        <?php echo $this->headTitle() ?>
        <?php echo $this->headMeta() ?>
        <?php echo $this->headLink() ?>
        <?php echo $this->headStyle() ?>        
        <?php
        echo $this->headScript()->prependFile('/js/init-front.js')
                ->prependFile('/js/jquery.min.js')
        ?>
    </head>
    <body>
        <div id="main">
            <div id="wrap">
                <div id="box-right" class="add-box box-right">
                    <?php echo $this->contentHelper($this->addsRight) ?>
                </div>   
                <div id="box-left" class="add-box box-left">
                    <?php echo $this->contentHelper($this->addsLeft) ?>
                </div>   
                <div id="main-wrap">  
                    <div id="menu"><?php echo $this->render('front/menu-top.phtml') ?></div>
                    <div id="content" class="<?php echo $this->request->getControllerName() . '-' . $this->request->getActionName() ?>">
                        <div id="<?php echo $this->request->getControllerName() . '-' . $this->request->getActionName() ?>">
                            <div id="head_menu" class="add-box">
                                <?php echo $this->contentHelper($this->addsTopMenu) ?>
                            </div>                            
                            <?php if ($this->flashMessenger->count() > 0) { ?>
                                <div class="ui-message">
                                    <ul>
                                        <?php foreach ($this->flashMessenger->getMessages() as $key => $msg) { ?>
                                            <li><?php echo $msg ?></li>
                                            <?php
                                        }
                                        //$this->flashMessenger->clearMessages();
                                        ?>
                                    </ul>
                                </div>
                            <?php } ?>
                            <?php echo $this->layout()->content ?>
                        </div>
                    </div>
                    <div id="foot">
                        <?php echo $this->render('front/foot.phtml') ?>
                    </div>
                    <?php echo $this->inlineScript() ?>
                </div>
            </div>
        </div>
    </body>
</html>
